#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
乘法运算示例
"""

from mcp.client.stdio import stdio_client
import asyncio

async def main():
    # 连接MCP服务
    client = await stdio_client()
    
    # 调用乘法运算
    result = await client.call_tool("multiply", {"a": 6, "b": 7})
    print(f"6 × 7 = {result}")
    
    # 浮点数乘法
    result = await client.call_tool("multiply", {"a": 2.5, "b": 4})
    print(f"2.5 × 4 = {result}")

if __name__ == "__main__":
    asyncio.run(main())